package com.shop.service;

import com.shop.dao.StudentDAO;
import com.shop.model.Student;

import java.util.List;

public class StudentService implements IStudentService{
    private StudentDAO studentDAO = new StudentDAO();

    public Student login(String studentId, String password) {
        return studentDAO.login(studentId, password);
    }
    public Student search(String studentId) {
        return studentDAO.search(studentId,"null");
    }
    public Boolean update(String name,int age,int grade,String studentId,String major){
        return studentDAO.update(name,age,grade,studentId,major);
    }
    public Boolean updateMoney(String studentId,Double money){
        return studentDAO.updateMoney(studentId,money);
    }
    public Boolean updatePassword(String studentId,String password){
        return studentDAO.updatePassword(studentId,password);
    }
    public Boolean updateIdentity(String studentId){
        return studentDAO.updateIdentity(studentId);
    }
}
